package com.commons.service.service;

import com.baomidou.mybatisplus.extension.service.*;
import com.commons.service.dto.*;
import com.commons.service.entity.*;
import org.springframework.web.multipart.*;

import javax.servlet.http.*;
import java.util.*;

public interface FileService extends IService<AiFile> {

    String uploadFile(MultipartFile multipartFile);

    List<String> multipleFilesUpload(MultipartFile[] multipartFile);

    void downloadFile(long fileId, HttpServletRequest request,HttpServletResponse response);

    boolean deleteFile(long fileId) ;

    /**
     * 导出excel
     * @param response
     * @param pageDto
     */
    void exportTableAsExcel(HttpServletResponse response,PageDto pageDto);

    /**
     * 上传读取excel
     */
    void readExcel(MultipartFile file);
}
